package com.caltco.cargo.ops.common.plugins.genrator;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.caltco.cargo.ops.common.utils.IdGenerator;

/**
 * description: CustomIdGenerator
 * date: 2023/2/1 14:46
 * author: yehao
 * version: 1.0
 */
public class CustomIdGenerator implements IdentifierGenerator {

    @Override
    public Number nextId(Object entity) {
        return IdGenerator.snowflake.nextId();

    }
}
